<!-- 秒杀列表页面 -->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<link href="/css/jquery-select/jquery.searchableSelect.css" rel="stylesheet" type="text/css">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="fixed-table-toolbar">

                    <!--						<div class="columns pull-left col-md-2 nopadding" th:if="${flag} == '0'">-->
                    <!--							<select data-placeholder="平台类型" class="form-control chosen-select" id="choosePlat" name="choosePlat" tabindex="1">-->
                    <!--								<option value="0">平台商品</option>-->
                    <!--								<option value="1">商户商品</option>-->
                    <!--							</select>-->
                    <!--						</div>-->
                    <input type="hidden" id="activityId" name="activityId" th:value="${activityId}"/>
                    <input type="hidden" id="activityType" name="activityType" th:value="${activityType}"/>
                    <div class="columns pull-left col-md-2 nopadding" th:if="${flag} == '0'">
                        <select data-placeholder="商户" class="form-control chosen-select" id="centreId" name="centreId"
                                tabindex="3">
                            <option value="">选择商户</option>
                            <option th:each="item: ${centreList}" th:text="${item.name}"
                                    th:value="${item.centreId}"></option>
                        </select>
                    </div>
                    <div class="columns pull-left col-md-2 nopadding" th:if="${flag} == '1'">
                        <select data-placeholder="店铺" class="form-control chosen-select" id="teamid" name="teamid"
                                tabindex="2">
                            <option value="">选择店铺</option>
                            <option th:each="item: ${teams}" th:text="${item.tXiaoqu+ +item.id}"
                                    th:value="${item.id}" th:selected="${item.id}==${teamId}"></option>
                        </select>
                    </div>
                    <div class="pull-left search nopadding">
                        <input id="productName" name="productName" type="text"
                               class="form-control" placeholder="输入需查询的关键字">
                    </div>
                    <div class="columns pull-right" role="group">

                        <button class="btn btn-success" onclick="reLoad()">
                            <i class="fa fa-search" aria-hidden="true"></i>查询
                        </button>

                    </div>
                </div>
                <table id="chooseProductTable" data-mobile-responsive="true"></table>
            </div>
        </div>

        <div id="goodsPackageSetting" style="display:none;    margin-top: 1rem;">
            <div>
                <label class="col-sm-4">商品名称:</label>
                <div class="col-sm-8">
                    <input id="goodsName" name="goodsName" placeholder="必填：商品名称"
                           class="form-control" value="">
                </div>
            </div>
            <div>
                <label class="col-sm-4">商品库存:</label>
                <div class="col-sm-8">
                    <input type="number" id="goodsStock" name="goodsStock" placeholder="必填:商品库存"/>
                </div>
            </div>
            <div>
                <label class="col-sm-4">套装价格:</label>
                <div class="col-sm-8">
                    <input type="number"
                           id="packagePrice" name="packagePrice" placeholder="必填:套装价格"/>
                </div>
            </div>
        </div>


        <div id="couponSetting" style="display:none;    margin-top: 1rem;">
            <div>
                <label class="col-sm-4">优惠券名称:</label>
                <div class="col-sm-8">
                    <input id="couponName" name="displayorder" placeholder="必填：优惠券名称"
                           class="form-control" value="">
                </div>
            </div>
            <div>
                <label class="col-sm-4">优惠券数量:</label>
                <div class="col-sm-8">
                    <input type="number"
                           id="couponCount" name="couponCount" placeholder="必填:优惠券数量"/>
                </div>
            </div>
            <div>
                <label class="col-sm-4">套装价格:</label>
                <div class="col-sm-8">
                    <input type="number"
                           id="couponPrice" name="couponPrice" placeholder="必填:优惠券套餐价格"/>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<div th:include="include::footer"></div>
<script src="/js/appjs/activity/freecharge/chooseShop.js"></script>
<script src="/js/jquery-select/jquery.searchableSelect.js"></script>
<script type="text/javascript">
    $(function () {
        $('#supply').searchableSelect();
        $('#centreId').searchableSelect();
    });
</script>
</body>

</html>